@extends('home.layout.layout')

@section('content')
<style>
#slidr-img img{width:680px;height:300px}
#footer{position: relative;margin: 0 auto;background: #304040;padding: 20px;}
</style>

<article>
@include('home.layout.aside')
    <main class="r_box">
        @if(!empty($articles))
            @foreach($articles as $article)
            <li>
                <i><a href="{{ url('article/detail/'.$article['id']) }}"><img src="/{{ $article['img_url'] }}"></a></i>
                <h3><a href="{{ url('article/detail/'.$article['id']) }}">{{ $article['title'] }}</a></h3>
                <p>{{ $article['desc'] }}</p>
            </li>
            @endforeach
        @else
        搜索内容为空
        @endif
      
    </main>
</article>

@endsection
